package com.tempjob.common.model;

import com.anwen.mongo.annotation.collection.CollectionField;
import com.tempjob.common.businesss.mongo.entity.*;
import com.tempjob.common.utils.DateUtilsEx;
import com.tempjob.common.utils.IDCardUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author hui
 * @Date 2024/12/4 13:57
 **/
@Data
@ApiModel("个人简历")
public class PersonCurriculumVO {

    @ApiModelProperty("_id")
    private String id;

    @ApiModelProperty("姓名")
    private String realName;

    @ApiModelProperty("手机号码")
    private String mobile;

    @ApiModelProperty("身份证号码")
    private String identNo;

    @ApiModelProperty("身份证地址")
    private String identAddress;

    @ApiModelProperty("状态0未认证1已认证")
    private Integer userStatus;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("工作年限")
    private Integer workYear;

    public Integer getWorkYear() {
        workYear = DateUtilsEx.getYears(startWorkTime);
        return workYear;
    }

    public Integer getAge() {
        age = IDCardUtil.getAge(identNo);
        return age;
    }

    @ApiModelProperty("出生日期")
    private String birthday;

    @CollectionField(value = "avatar")
    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("学历")
    private String education;

    @ApiModelProperty("个人优势")
    private String advantage;

    @ApiModelProperty("求职状态：1求职中2在职求职")
    private Integer hireStatus;

    @ApiModelProperty("参加工作时间yyyy-MM")
    private Date startWorkTime;

    @ApiModelProperty("教育经历")
    private List<UserEducation> userEducations;

    @ApiModelProperty("求职意愿")
    private List<UserIntentionInfo> userIntentionInfos;

    @ApiModelProperty("工作经历")
    private List<UserWorkExperience> userWorkExperiences;

    @ApiModelProperty("技能标签")
    private List<UserSkillTag> userSkillTags;

    @ApiModelProperty("证书标签")
    private List<UserCertificateTag> userCertificateTags;

    @ApiModelProperty("就业困难证明")
    private UserDifficultProve userDifficultProve;


}
